package com.woniuxy.ticket_cinema.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.ticket_cinema.entity.Dto.ScheduleDto;
import com.woniuxy.ticket_cinema.entity.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author booty
 * @since 2021-02-22
 */
@Mapper
@Repository
public interface ScheduleMapper extends BaseMapper<Schedule> {
    //根据电影id查询排片以及电影院信息
    List<ScheduleDto> findScheduleDtoByFilmId(Page<ScheduleDto> page,@Param("id") int id);
}
